﻿// RichListDemo.cpp : 定义应用程序的入口点。
//

#include "stdafx.h"
#include <exdisp.h>
#include <comdef.h>
#include "RichListWnd.h"

int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int nCmdShow)
{
    CPaintManagerUI::SetInstance(hInstance);
    //CPaintManagerUI::SetResourcePath(CPaintManagerUI::GetInstancePath() + _T("\\skin"));
    //CPaintManagerUI::SetResourceZip(_T("RichListRes.zip"));

    CRichListWnd *pFrame = new CRichListWnd();

    if (pFrame == NULL) { return 0; }

    pFrame->Create(NULL, _T("DuiLib Demo from mbstudio.cn / meineson"), UI_WNDSTYLE_FRAME, 0L, 0, 0, 500, 400);
    pFrame->CenterWindow();
    ::ShowWindow(*pFrame, SW_SHOW);

    //::MessageBox(NULL, _T("alert!"), _T("Duilib Demo"), MB_OK);

    CPaintManagerUI::MessageLoop();
    CPaintManagerUI::Term();
    return 0;
}
